﻿using System;
using System.Collections.Generic;
using System.Text;
using Model.RF.TestRecord;
using IDAL.RF.TestRecord;

namespace BLL.RF.TestRecord
{
    public class Action_Record : BaseService<Action_RecordInfo>
    {
        private static readonly IAction_Record dal = DALFactory.DataAccess.CreateAction_Record();
        
        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        //----------------------------------以下为灵敏度测试相关---------------------------------------------------------
        public bool Action_Record_Insert_ATEFlowControlCheck(Action_RecordInfo tri)
        {
            return dal.Action_Record_Insert_ATEFlowControlCheck(tri);
        }

        public IList<Action_RecordInfo> Action_Record_GetATEFlowControlCheck_bySN(string productSN)
        {
            return dal.Action_Record_GetATEFlowControlCheck_bySN(productSN);
        }

        public IList<Action_RecordInfo> Action_Record_GetATEFlowControlCheck_byDT(DateTime startTime, DateTime stopTime)
        {
            return dal.Action_Record_GetATEFlowControlCheck_byDT(startTime, stopTime);
        }
    }
}
